package com.goktech.service;

import com.goktech.entityDto.UserDto;
import com.goktech.pojo.Register;
import com.goktech.pojo.UpdatePass;
import com.goktech.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.goktech.utils.Result;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 用户实体类 服务类
 * </p>
 *
 * @author 初茶
 * @since 2023-05-14
 */
public interface UserService extends IService<User> {

    void imageGenerate(HttpServletResponse response);

    Result<String> login(User user);

    Result<String> register(Register register);

    Result<String> updatePass(UpdatePass updatePass);

    void updPassCode(HttpServletResponse response, Long uId);

    Result<String> updateUserInfo(User userInfo, HttpServletRequest request);

    Result<String> uploadHeader(MultipartFile headerFile);
}
